package com.flea.hclv.service;

import com.flea.hclv.model.entity.HCar;
import com.flea.hclv.model.entity.HCarReserve;
import com.flea.hclv.model.entity.HCarReserveItem;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;

public interface HCarReserveService {
    ServerResponse<String> addReserveInfo(String model, HttpServletRequest request) throws ParseException;

    ServerResponse<FleaPage<HCarReserve>> findCarReserveList(FleaPage<HCarReserve> paging, HttpServletRequest request);

    ServerResponse<FleaPage<HCarReserve>> findMyCarReserveList(FleaPage<HCarReserve> paging, HttpServletRequest request, String reserveStatus);

    ServerResponse<FleaPage<HCarReserve>> getUnfinishedCarReserveList(FleaPage<HCarReserve> paging, HttpServletRequest request, String reserveStatus);

    ServerResponse<String> insertReserveOrderItem(HttpServletRequest request, String model) throws Exception;

    ServerResponse<FleaPage<HCarReserveItem>> getReserveCarItem(FleaPage<HCar> paging, String reserveCarId);

    ServerResponse<FleaPage<HCar>> getRequireCars(HttpServletRequest request, FleaPage<HCar> paging, String reserveCarId);

    ServerResponse<String> updateReserveStatus(HttpServletRequest request, String model) throws Exception;
}
